<!-- $Id: editVote.html 6 2011-02-04 11:57:05Z nicholasinlove1986@gmail.com $ -->
<include file="Public:pageheader"/>
<link href="__PUBLIC__/Js/calendar/calendar.css" rel="stylesheet" type="text/css" />
<load href="__PUBLIC__/Js/validator.js" />
<script type="text/javascript" src="__PUBLIC__/Js/calendar/calendar.php"></script>
<script language="javascript">
/**
* 检查表单输入的数据
*/
function validate()
{
	validator = new Validator("theForm");
		
	validator.required("vote_name","投票主题不能为空");
	validator.gt("vote_endtime", "vote_starttime", "开始日期不能晚于结束日期");
	return validator.passed();
}
</script>
<div class="main-div">
<form name="theForm" method="post" action="__URL__/updateVote"  onsubmit="return validate()">
<table width="90%">
<tr>
    <td width="60%" class="label">创建人：</td>
    <td width="40%">{@user_name}</td>
  </tr>
   <tr>
    <td class="label">创建时间：</td>
    <td>
      {$vo.vote_addtime|date='Y-m-d H:i:s',###}
    </td>
  </tr>
   <tr>
    <td class="label">参与人数：</td>
    <td>
      {$vo.vote_count}
    </td>
  </tr>
  <tr>
    <td class="label">投票主题：</td>
    <td>
      <input type='text' name='vote_name' value='{$vo.vote_name}' size='40' /><span class="require-field">*</span>
    </td>
  </tr>
  <tr>
    <td class="label">开始日期：</td>
    <td>
      <input name="vote_starttime" type="text" id="vote_starttime" size="22" value="{$vo.vote_starttime|date='Y-m-d',###}" readonly="readonly" onclick="return showCalendar(this, '%Y-%m-%d', false, false, this);"/><span class="require-field">*</span>
    </td>
  </tr>
  <tr>
    <td class="label"><a href="javascript:showNotice('endtime');" title="点击此处查看提示信息">
        <img src="__PUBLIC__/Images/notice.gif" alt="点击此处查看提示信息" border="0" width="16" height="16"></a> 截止日期：</td>
    <td>
      <input name="vote_endtime" type="text" id="vote_endtime" size="22" value="{$vo.vote_endtime|date='Y-m-d',###}" readonly="readonly" onclick="return showCalendar(this, '%Y-%m-%d', false, false, this);"/><span class="require-field">*</span><br /><span class="notice-span" style="display: block;" id="endtime">开始日期不能晚于结束日期</span>
    </td>
  </tr>
    <tr>
    <td class="label">选择类型：</td>
    <td>
	<input name="vote_type" type="radio"  value="0" <eq name="vo.vote_type" value="0" >checked="checked"</eq> />单选
	<input name="vote_type" type="radio"  value="1" <eq name="vo.vote_type" value="1" >checked="checked"</eq> />多选
	 </td>
  </tr>
  <tr>
    <td class="label">是否限制：</td>
    <td>
	<input name="vote_filterip" type="radio"  value="0" <eq name="vo.vote_filterip" value="0" >checked="checked"</eq> />否
	<input name="vote_filterip" type="radio"  value="1" <eq name="vo.vote_filterip" value="1" >checked="checked"</eq> />是
	 </td>
  </tr> 
  <tr>
  <td class="label">查看结果：</td>
    <td>
	<input name="vote_view" type="radio"  value="0" <eq name="vo.vote_view" value="0" >checked="checked"</eq> />否
	<input name="vote_view" type="radio"  value="1" <eq name="vo.vote_view" value="1" >checked="checked"</eq>  />是
	 </td>
  </tr>
  <tr>
  <td class="label">是否显示：</td>
    <td>
	<input name="vote_visible" type="radio"  value="0" <eq name="vo.vote_visible" value="0" >checked="checked"</eq> />否
	<input name="vote_visible" type="radio"  value="1" <eq name="vo.vote_visible" value="1" >checked="checked"</eq>  />是
	 </td>
  </tr>
  <tr>
  <td class="label"><a href="javascript:showNotice('votestatus');" title="点击此处查看提示信息">
        <img src="__PUBLIC__/Images/notice.gif" alt="点击此处查看提示信息" border="0" width="16" height="16"></a> 是否激活：</td>
    <td>
	<input name="vote_status" type="radio"  value="0" <eq name="vo.vote_status" value="0" >checked="checked"</eq> />否
	<input name="vote_status" type="radio"  value="1" <eq name="vo.vote_status" value="1" >checked="checked"</eq> />是<br /><span class="notice-span" style="display: block;" id="votestatus">一旦启用投票,尽量不要修改各种信息</span>
	 </td>
  </tr>
   <tr>
    <td colspan="2" align="center">
      <input type="submit" value=" 确定 " class="button" />&nbsp;&nbsp;&nbsp;
      <input type="reset" value=" 重置 " class="button" />
	  <input type="hidden" name="act" value="vote" />
	  <input type="hidden" name="vote_id" value="{$vo.vote_id}" /></td>
  </tr>
</table>
</form>
</div>
<include file="Public:pagefooter"/> 